package com.prothink.service.impl;

import com.prothink.dao.JsCommentDao;
import com.prothink.entity.FenyeNode;
import com.prothink.entity.JsComment;
import com.prothink.service.JsCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: siyun2
 * @BelongsPackage: com.prothink.service.impl
 * @Author: Jin
 * @CreateTime: 2022-11-23  10:41
 * @Description: TODO
 */
@Service
public class JsCommentServiceImpl implements JsCommentService {
    @Autowired
    private JsCommentDao jsCommentDao;
    @Override
    public FenyeNode<JsComment> getJsComment(JsComment params) {
        FenyeNode<JsComment> nodejscomment = new FenyeNode<>();
        List jsComment1 = jsCommentDao.getJsComment(params);
        nodejscomment.setComment(jsComment1);

        return nodejscomment;
    }

    @Override
    public int delJsComment(int id) {
        return jsCommentDao.delJsComment(id);
    }
}
